<?php

namespace app\admin\validate;

use think\Validate;

/**
 * 班级验证器
 */
class Score extends Validate
{
    protected $rule = [
        'name'           => 'require',
        'score'          => 'require',
        'exam_id'        =>'gt:0',
        'class_id'       =>'gt:0',
    ];

    protected $message = [
        'name.require'         => '请输入姓名',
        'score.require'        => '请输入分数',
        'exam_id.gt'         => '请选择考试',
        'class_id.gt'        => '请选择班级',
    ];
}